package com.zg.service;

import com.zg.pojo.User;

public interface UserService {
	/**
	 * 获取用户通过id
	 * @param userId
	 * @return
	 */
	public User getUserById(int userId);
	/**
	 * 插入用户
	 * @param record
	 * @return
	 */
	public int insert(User record);
	/**
	 * 更新用户
	 * @param record
	 * @return
	 */
	public int updateByPrimaryKey(User record);
	/**
	 * 删除用户
	 * @param id
	 * @return
	 */
	public int deleteByPrimaryKey(int id);
}
